import { createBrowserRouter } from "react-router-dom";

import App from "../App";
import Home from "../component/index/Home";
import Video from "../component/video/Video";
import News from "../component/news/News";
import My from "../component/my/My";

const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    children: [
      {
        path: "/home",
        element: <Home />,
      },
      {
        path: "/video",
        element: <Video />,
      },
      {
        path: "/news",
        element: <News />,
      },
      {
        path: "/my",
        element: <My />,
      },
    ],
  },
]);


export default router;